<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 transitional//EN">
<html>
<head>
<title>Data Source Element</title>
<link rel="stylesheet" href="../style/style.css" type="text/css"/>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<h1>DataSource</h1>

<p>The data source element represents a connection to an 
external data system.</p>

<h3>Description</h3>

<p>The Data Source script methods execute as methods of a 
JavaScript object that represents the data source. See the Data Scripting 
Objects section for a description of the
<code>DataSource</code> scripting 
object.</p>

<h3>Inherited Properties</h3>

<dl>
<dt class="inherited-property">name</dt>
<dd>The name is required for a data source. Data sets use 
this name to associate themselves with the data source.</dd>
</dl>

<h3>See Also</h3>

<p><code>DataSource</code> scripting object</p>

<h2 class="method">beforeOpen</h2>

<p>Perform initialization before opening the data source connection for data access.</p>

<h3>Description</h3>

<p>Called just before BIRT opens the data source. Allows the 
application to customize the data source properties.</p>

<h3>See Also</h3>

<p><code>afterOpen</code> method</p>

<h2 class="method">afterOpen</h2>

<p>Perform initialization after opening the data source connection for data access.</p>

<h3>Description</h3>

<p>Called just after BIRT opens the data source. Allows the 
application to perform any code-based initialization required for the data 
source.</p>

<h3>See Also</h3>

<p><code>beforeOpen</code> method</p>

<h2 class="method">beforeClose</h2>

<p>Called just before closing the data source connection.</p>

<h3>Description</h3>

<p>Called just before BIRT closes the data source. Allows 
the application to perform code-based cleanup.</p>

<h3>See Also</h3>

<p><code>afterClose</code> method</p>

<h2 class="method">afterClose</h2>

<p>Called just after closing the data source connection.</p>

<h3>Description</h3>

<p>Called just after BIRT closes the data source. Allows the 
application to perform code-based cleanup.</p>

<h3>See Also</h3>

<p><code>beforeClose</code> method</p>

</body>
</html>